const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave:false,
  devServer: {
    proxy: {
      '/demo1': {
        target: 'http://localhost:5000',
        cookiePathRewrite:{'^/demo1':''},
        ws: true, // 用于支持websocket
        changeOrigin: true // 用于控制请求头中的host值
      },
      '/demo2': {
        target: 'http://localhost:5001',
        cookiePathRewrite:{'^/demo2':''},
        ws: true, // 用于支持websocket
        changeOrigin: true // 用于控制请求头中的host值
      }
    }
  }
})
